package com.igs.muziapp.view;

import com.igs.muziapp.R;
import com.igs.muziapp.surface.IRequest_View;
import com.igs.muziapp.utils.DensityUtil;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
import android.widget.TextView;

public class Songinfo_row0 implements IRequest_View {
	private View view;
	private Context context;

	private TextView TextName;
	private TextView TextCondition;
	private TextView TextRate;
	private ImageView ImageAch00;

	public Songinfo_row0(Context context) {
		this.context = context;
		DensityUtil densityutil = new DensityUtil();
		ViewGroup.LayoutParams param = new ViewGroup.LayoutParams(LayoutParams.FILL_PARENT, densityutil.dip2px(context, 42));
		LayoutInflater mLi = LayoutInflater.from(context);
		view = mLi.inflate(R.layout.muzi_songinfo_row0, null);
		view.setLayoutParams(param);

		// 取出實體物件
		TextName = (TextView) view.findViewById(R.id.textView_name);
		TextCondition = (TextView) view.findViewById(R.id.textView_condition);
		TextRate = (TextView) view.findViewById(R.id.textView_rate);
		ImageAch00 = (ImageView) view.findViewById(R.id.imageView_ach00);

	}

	@Override
	public View getView() {
		// TODO Auto-generated method stub
		return view;
	}

}
